home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-03.Z / 94-03 / text0312.txt < prev    next >
Encoding:
Text File  |  1994-03-30  |  1.0 KB  |  24 lines

  1. >   In fact, a number of WINSOCK.DLLs do this. My application opens a number
  2. >   of sockets (3), and in testing the stacks to see how much data we could
  3. >   send at a time, I would get FD_WRITE messages, but in fact the send
  4. >   would fail with SOCKET_ERROR/EWOULDBLOCK consistently. The net effect
  5. >   was that my application would get caught in a loop, effectively hanging
  6. >   Windows.
  7.  
  8. One way to avoid the deadlock is to call PeekMessage/Dispatch/Translate
  9. (similar to blocking hook in SetBlockingHook() example) just before or
  10. after trying to receive in your FD_WRITE handler.
  11.  
  12. >   If anyone knows of a WINSOCK that doesn't do this, I'd like to hear about
  13. >   it. Of course, this would probably be solved by a full 32 bit
  14. >   implementation...
  15.  
  16. Our DLL is guilty of this also.  We have recently fixed it, and the
  17. fixed version will be available as soon as it makes it through QA.
  18.  
  19. Regards,
  20. --
  21.  Bob Quinn                                             rcq@ftp.com
  22.  FTP Software, Inc.                                No. Andover, MA
  23.  
  24.